From: Florian Müllner Date: Tue, 19 Aug 2014 16:57:36 +0000 (+0200) Subject: search: Fix custom drag actor source X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2237 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d5aa276c418bcb276db35fb74945a111b085be7b;p=gnome-shell.git search: Fix custom drag actor source The existing code broke when commit 792b963bda8c changed the custom result actor hook to return an object instead of an actor - stop trying to go through a _delegate to make it work again. --- diff --git a/js/ui/search.js b/js/ui/search.js index 1bb656a0a..16ec4d2eb 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -243,8 +243,8 @@ const GridSearchResult = new Lang.Class({ dragSource = icon.icon; content = { actor: actor, icon: icon }; } else { - if (content._delegate && content._delegate.getDragActorSource) - dragSource = content._delegate.getDragActorSource(); + if (content.getDragActorSource) + dragSource = content.getDragActorSource(); } this.actor.set_child(content.actor);